  var url = "http://unixhelp.ed.ac.uk/CGI/man-cgi?";
  function init() {
	    $("searchBox").focus();
		$("searchButton").addEventListener("click",_search,false);
		$("searchBox").addEventListener("keyup",_keyUp,false);

		var as = new O($("searchBox"));
  }
  function _keyUp(e) {
	  if (e.keyCode==13) {
		_search();
	  }
  }	
  function _search() {
      var query = $("searchBox").value;
	  chrome.tabs.create({url:url+query})
  }		
  function $(id) {
      return document.getElementById(id);
  }	
